package org.jc.subject.domain.entity;

import lombok.Data;
import org.jc.subject.common.entity.PageInfo;

import java.io.Serializable;
import java.util.List;

/**
 * 功能描述
 *
 * @author wanghongqian
 * @date 2024/06/24 16:43
 */
@Data
public class SubjectInfoBO extends PageInfo implements Serializable {
    private static final long serialVersionUID = 931112707048307715L;
    /**
     * 主键
     */
    private Long id;
    /**
     * 题目名称
     */
    private String subjectName;
    /**
     * 题目难度
     */
    private Integer subjectDifficult;
    /**
     * 出题人名
     */
    private String settleName;
    /**
     * 题目类型 1单选 2多选 3判断 4简答
     */
    private Integer subjectType;
    /**
     * 题目分数
     */
    private Integer subjectScore;
    /**
     * 题目解析
     */
    private String subjectParse;

    /**
     * 题目答案
     */
    private String subjectAnswer;

    /**
     * 分类id
     */
    private List<Long> categoryIds;

    /**
     * 标签id
     */
    private List<Long> labelIds;

    /**
     * 标签名
     */
    private List<String> labelName;

    /**
     * 选项id
     */
    private List<SubjectAnswerBO> optionList;

    @Data
    public static class SubjectAnswerBO{
        private Integer optionType;

        private String optionContent;

        private Integer isCorrect;
    }

    /**
     * 查询属性,categoryId,labelId
     */
    private Long categoryId;

    private Long labelId;
}
